#!/bin/sh

choose="$(printf "poweroff\nreboot\nLogout\nCancel" | rofi -dmenu -p "login: ")"

case $choose in
    Cancel) exit ;;
    Logout)
        hyprctl dispatch exit
        riverctl exit
        ;;
    *) loginctl "$choose" ;;
esac
